home *** CD-ROM | disk | FTP | other *** search
/ Precision Software Appli…tions Silver Collection 1 / Precision Software Applications Silver Collection Volume One (PSM) (1993).iso / tutor / cptuts22.arj / DATETIME.H < prev    next >
C/C++ Source or Header  |  1992-01-20  |  561b  |  21 lines

  1.                                      // Chapter 9 - Program 4
  2. #ifndef DATETIME_H
  3. #define DATETIME_H
  4.  
  5. #include "newdate.h"
  6. #include "time.h"
  7.  
  8. class datetime : public new_date, public time_of_day {
  9.  
  10. public:
  11.  
  12.    datetime(void) { ; };        // Default to todays date and time
  13.    datetime(int M, int D, int Y, int H, int Mn, int S) :
  14.                     new_date(),              // Member initializer
  15.                     time_of_day(H, Mn, S)    // Member initializer
  16.                     { set_date(M, D, Y); };  // Constructor body
  17.  
  18. };
  19.  
  20. #endif
  21.